package es.deusto.pfc.garuda.test;

import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.UnknownHostException;

public class NetTest1
{
	public static void main(String[] args)
	{
		byte[] buffer = "Holas\r\n".getBytes();
		
		try
		{
			DatagramSocket s = new DatagramSocket();
			s.send(new DatagramPacket(buffer, buffer.length, InetAddress.getLocalHost(), 31173));
			//s.getOutputStream().flush();
		}
		catch (UnknownHostException e)
		{
			e.printStackTrace();
		}
		catch (IOException e)
		{
			e.printStackTrace();
		}
	}
}
